﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CosmosKernel4.PowerManagement
{
    class PowerMgr
    {
        public void reboot()
        {
            byte good = 0x02;
            while ((good & 0x02) != 0)
                good = CosmosKernel4.Global.IOPorts.Inb(0x64);
            CosmosKernel4.Global.IOPorts.Outb(0x64, 0xFE); //Pulse reset pin
            Cosmos.Core.Global.CPU.Halt();
        }

    }
}
